package com.mingyuan.library.infra.lending.book.exception;

import com.mingyuan.library.domain.common.enums.CommonExceptionCodeEnum;
import com.mingyuan.library.domain.common.exception.BusinessException;

/**
 * @author : yangzk
 * 未定义异常
 */
public class UnknownBusinessException extends BusinessException {

    private static final long serialVersionUID = -5833649599524459962L;

    public UnknownBusinessException() {
        super(CommonExceptionCodeEnum.UNKNOWN);
    }

    public UnknownBusinessException(String message) {
        super(CommonExceptionCodeEnum.UNKNOWN.getErrCode(), message);
    }

    public UnknownBusinessException(Throwable cause) {
        super(CommonExceptionCodeEnum.UNKNOWN, cause);
    }

    public UnknownBusinessException(String message, Throwable cause) {
        super(CommonExceptionCodeEnum.UNKNOWN.getErrCode(), message, cause);
    }

}
